﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Xml;

namespace WebServiceKFC.MonAnF
{
    public class SafeMonAnDTO: MonAnDTO
    {
        public void Attach(MonAnDTO monAn)
        {
            this.MaMonAn = monAn.MaMonAn;
            this.TenMonAn = monAn.TenMonAn;
            this.DonGia = monAn.DonGia;
            this.ChiTietMonAn = monAn.ChiTietMonAn;
            this.SoLuong = monAn.SoLuong;
            this.LoaiDoiTuong = monAn.LoaiDoiTuong;
            this.ExtraAttributes = monAn.GetExtraAttributes();
        }

        private XmlDocument _extraAttributes;

        public XmlDocument ExtraAttributes
        {
            get { return _extraAttributes; }
            set { _extraAttributes = value; }
        }
    }
}